package com.example.smartcamera.utils;


import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.net.Socket;

public class SocketUtil {


    public SocketUtil() {
        sockerSend();
    }

    public void sockerSend() {
        try {
            Socket socket = new Socket("192.168.1.22",10004);
            OutputStream os=socket.getOutputStream();
            PrintWriter pw=new PrintWriter(os);
            String str="start";
            pw.write(str);
            pw.flush();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
